<h3>{$WEB_APP.title}</h3>
{include file="errors.tpl"}

{if count($WEB_APP.titles) neq 0}
		<table width = "100%">
		{assign var="tmp" value="2"}
		{foreach from = $WEB_APP.titles item = item name=foreach_row}
			{if $tmp eq 2}
				{assign var="tmp" value="1"}
			{else}
				{assign var="tmp" value="2"}
			{/if}
			{if $item.name eq "header"}
			</table>
			
			<br>{assign var="tmp" value="2"}
			<h3>{$item.value|escape}</h3>
			<table width = "100%">
				

			{else}
			<tr>
				
				<td class="line{$tmp}" width = "30%">{$item.name|escape|email}:</td>
				<td class="line{$tmp}" width = "70%">{$item.value}</td>
				
			</tr>
			{/if}
		{/foreach}
			
		</table>		
	{/if}
	{if $WEB_APP.rows_count > 0}
		<br>
		<h3>{$text.txt_results}</h3>
		{include file="table_header.tpl" columns=$WEB_APP.columns}
		{include file="table_rows.tpl" index='id' items=$WEB_APP.rows columns=$WEB_APP.columns}
		{include file="table_footer.tpl" columns_count=$WEB_APP.columns_count}
	{/if}
	
	{if $WEB_APP.themes_count > 0}
		<br>
		{include file="table_header.tpl" columns=$WEB_APP.themes_columns}
		{include file="table_rows.tpl" index='id' items=$WEB_APP.themes columns=$WEB_APP.themes_columns}
		{include file="table_footer.tpl" columns_count=$WEB_APP.themes_columns_count}
	{/if}
